#define GRADIENT_COLOR

layout(std430, binding = 3) readonly buffer U2_Matrix {
	uvec2 InstanceColor[];
};
//半径 步进角度
layout(std430, binding = 4) readonly buffer U3_Matrix {
	vec2 InstanceGradient[];
};


vec4 f_buildColor(in uint color){
	vec4 TColor;
	TColor.r = float((color & 0xff000000) >> 24) / 255.0;
	TColor.g = float((color & 0x00ff0000) >> 16) / 255.0;
	TColor.b = float((color & 0x0000ff00) >> 8) / 255.0;
	TColor.a = float((color & 0x000000ff)) / 255.0;
	return TColor;
}

